Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Push player with a bash possible?

  1. #1

    Default Push player with a bash possible?

    Is it possible to make a mod to push someone with a bash in the direction the basher looks?, and make the bash 0 damage?.
    is there allreayd something out like that?... i cant make mods but i can edit some excisting stuff.

    i want to use it for my mod but its also usefull for people that stand in the middle of the doorway.. u can just bash them out of the way.

  2. #2
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,567

    Default

    Possible , Idea : dmscondarrydamaga(ithink) 0

    state files : exec a script when bashing.

    then we push the other one . perhaps with a trigger push ?

    or maybe velocity

    it's gonna be advanced only in vectors and angles .

  3. #3

    Default

    Just thinking of mods with other things that move - is there anything you can pull from the nade kick mod, or the countdown mod where the radio moves, or maybe the moh ball mod.. It would be different because you're applying yhr action to a player rather than an item but it might be a start.

  4. #4

    Default

    i have a teleport mod... after u get teleport it will push u 3 steps forward so the next wnt get stuck in the othe rplayer.. mnaybe i can change the teleport into a bash... but havent a clue how ot call up a bash :P

    Code:
    //  DESTROYED VILLAGE 
    
    port2:
    local.fx = spawn script_model
    local.fx model "fx/corona_red.tik" 
    local.fx.origin = ( 366 -1180 13 )
    local.fx.scale = 1.5
    local.fx notsolid
    //local.fx hide
    
    
    local.trig2 = spawn trigger_use origin local.fx.origin
    local.trig2 setsize ( -20 -20 -20 ) ( 20 20 20 )
    while(1)
    {
    local.trig2 waittill trigger
    local.player2 = parm.other
    local.player2 tele ( 362 -1182 214 )
    local.player2 thread push_player3
    local.fx hide
    wait 2
    local.fx show
    }
    wait 1
    end
    push_player3:
    local.trigger2 = spawn trigger_push origin ( 362 -1182 214 ) "target" "roof2"
    spawn script_origin "targetname" "roof2" origin ( 323 -1163 214 )
    local.trigger2 speed 250
    wait 1
    local.trigger2 remove
    end
    
    
    //----------------------------------------------------------------------------
    update idea of the mod i want t use the push mod http://social.xfire.com/video/635220
    Last edited by Slimbips {sfx}; May 21st, 2015 at 05:31 AM.

  5. #5

    Default

    Lebabouin from modtheather says:

    sorry got no time to wite and test nowadays and just can tell what i would try experimentally:
    Spawn a trigger (trigger_push may work) around the basher (from mike_torso) big enough to trap the victim and move him according to the basher's forward vector or velocity or something, not sure and memory leaks
    Much search button usage but anything you need stands here and your nice idea deserves your efforts

  6. #6

    Default

    Code:
    // Pistol whip for silent kills
    state ATTACK_PISTOL_SECONDARY
    {
    	movetype legs
    
    	entrycommands
    	{
    		viewmodelanim fire_secondary 1
    	}
    
    	action
    	{
    		pistol_butt	: default
    	}
    	
    	states
    	{
    		STAND	 	: KILLED
    		
    		STAND	 	: ANIMDONE_TORSO
    	}
    }

  7. #7
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,567

    Default

    Quote Originally Posted by Slimbips View Post
    Lebabouin from modtheather says:

    sorry got no time to wite and test nowadays and just can tell what i would try experimentally:
    Spawn a trigger (trigger_push may work) around the basher (from mike_torso) big enough to trap the victim and move him according to the basher's forward vector or velocity or something, not sure and memory leaks
    Much search button usage but anything you need stands here and your nice idea deserves your efforts
    That's exactly what did i say above !!!!

  8. #8

    Default

    yes but its still chinese for me :P. im digging on the internet for a mod with a trigger that moves something :P, but i think im to noob for this and it will take 4 years of programming before i understand what im doing :P

  9. #9
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,567

    Default

    pfffffff

    haha actually no , :v

    1 and a half year is enough

  10. #10

    Default

    The push trigger might work, just not sure where you'd spawn it from the state file. Is there a way with the reborn commands to get the coordinates of the attacker and player? You'd want to spawn the trigger right between the two, and you'd also need to get the angle of the attacker and have the trigger push in that direction.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •